﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Sites
{
    /// <summary>
    /// 站点用户
    /// </summary>
    [Table("Site_Roles")]
    public class SiteRole : IEntity<int>
    {
        [Column("RoleId")]
        public int Id { get; set; }
        public int SiteId { get; set; }
        /// <summary>
        /// 角色名
        /// </summary>
        public string Name { get; set; }
        public string Description { get; set; }
        /// <summary>
        /// 权限,号分隔
        /// </summary>
        public string Permissions { get; set; }
        /// <summary>
        /// 角色所在人数
        /// </summary>
        public int Count { get; set; }
    }
}
